package com.ykq.handler;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @program: 145ssm
 * @description:
 * @author: 闫克起2
 * @create: 2021-12-10 11:44
 **/
@ControllerAdvice
public class GlobalHander {

    @ExceptionHandler(value = Exception.class)
    public String handlerException(Exception e){
          e.printStackTrace();
          return "error";
    }
}
